import {ref} from 'vue'
import {defineStore} from 'pinia'
import {getCategoryAPI} from "@/apis/Layout.js";

export const useCategoryStore = defineStore('category', () => {

    const categroyList = ref([])

    async function getCategoryDate() {

        let res = await getCategoryAPI()
        categroyList.value = res.result
    }

    return {
        categroyList,
        getCategoryDate
    }
})
